﻿using System;
using System.Collections.Generic;

using Cooking.Client.Querying;

namespace Cooking.Client.Services
{
    public interface IQueryAgent
    {
        void FindRecipes(int? minimumRating, string partialTitle, string partialDescription, Action<IEnumerable<Recipe>> callback);

        object ExecuteQuery<TEntity>(string queryString, Action<IEnumerable<TEntity>> callback);

        void CancelQuery(object handle);
    }
}